/*
 * @Author: c
 * @Date: 2023-12-26 12:09:58
 * @LastEditTime: 2024-01-17 03:46:16
 * @LastEditors: c
 * @Description: 
 * @FilePath: \music-web-backend\src\core\system\dict_type\dto\create-dict_type.dto.ts
 * https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { Transform } from "class-transformer";
import { IsNumber, IsOptional, IsString, MaxLength } from "class-validator";
export class CreateDictTypeDto {}


/**
 * 字典表单类型声明
 */
export class DictTypeForm {
    /**
     * 字典类型ID
     */
    @IsOptional()
    id?: number;
    /**
     * 类型名称
     */

    @IsString()
    name?: string;
    /**
     * 类型编码
     */
    @IsString()
    code?: string;

    /**
     * 类型状态：1:启用;0:禁用
     */
    @IsOptional()
    @Transform(value => +value)
    @IsNumber()
    status: number;
    /**
     * 备注
     */
    @IsOptional()
    @IsString()
    @MaxLength(200)
    remark?: string;
}